#ifndef __BSP_SRAM_H
#define __BSP_SRAM_H

//SRAM起始与结束地址
#define SRAM_START_ADDR                 0x60000000
#define SRAM_END_ADDR                   0x600FFFFF

//LCD内存区
#define LCD_MEM_START_ADDR              0x60000000
#define LCD_MEM_END_ADDR                0x6004AFFF

//utf16->GB2312内存区
#define UTF16_GB2312_MEM_START_ADDR     0x6004B000
#define UTF16_GB2312_MEM_END_ADDR       0x60051CCB
#define UTF16_GB2312_MEM_SIZE           0x6CCC     //27852Bytes


//字形内存区
#define GB2312_SHADE_MEM_START_ADDR     0x60051CD0
#define GB2312_SHADE_MEM_END_ADDR       0x6008D48F
#define GB2312_SHADE_MEM_SIZE           0x3B7C0    //243648Bytes
#define GB2312_SHADE_MEM_PER_READ       0x8000     //32768Bytes
#define GB2312_SHADE_MEM_LOOP_COUNT     (GB2312_SHADE_MEM_SIZE / GB2312_SHADE_MEM_PER_READ)
#define GB2312_SHADE_MEM_LOOP_LEFT      (GB2312_SHADE_MEM_SIZE % GB2312_SHADE_MEM_PER_READ)


//GB2312数据
#define FONT_SRC_MEM_LEN_START_ADDR     0x6008D490     //规定前2个字节放源数据长度
#define FONT_SRC_MEM_START_ADDR         (0x6008D490 + 0x02)
#define FONT_SRC_MEM_END_ADDR           0x6008F48F

//ESP32接收数据
#define ESP32_RX_MEM_START_ADDR         0x6008F490
#define ESP32_RX_MEM_START_END          0x6009148F
#endif /* __BSP_SRAM_H */
